package main.java.maziacs.squares;

import main.java.maziacs.ITile;
import main.java.maziacs.characters.Position;
import main.java.maziacs.counters.Counter;


public class Circle extends Square implements ICircle{

	public Circle(ITile t) {
	// No es necesario controlar la excepcion porque se hace en la clase padre.	
		super(t);
		counters=null;
	}

	/**
	 * @uml.property   name="counters"
	 * @uml.associationEnd   inverse="circle:uml.Counter"
	 */
	private Counter counters;

	/* (non-Javadoc)
	 * @see uml.ICircle#getCounters()
	 */
	public Counter getCounters() {
		return counters;
	}

	/* (non-Javadoc)
	 * @see uml.ICircle#setCounters(uml.Counter)
	 */
	public void setCounters(Counter counters) {
		this.counters = counters;
	}

	/**
	 * @uml.property  name="type"
	 */
	private Counter type;

	/* (non-Javadoc)
	 * @see uml.ICircle#getType()
	 */
	public Counter getType() {
		return type;
	}

	/* (non-Javadoc)
	 * @see uml.ICircle#setType(uml.Counter)
	 */
	public void setType(Counter type) {
		this.type = type;
	}

	/**
	 * @uml.property  name="position"
	 */
	private Position position;

	/* (non-Javadoc)
	 * @see uml.ICircle#getPosition()
	 */
	public Position getPosition() {
		return position;
	}
			
	public Boolean containsCounter(){
		return !counters.equals(null);
	}
	
	/* (non-Javadoc)
	 * @see uml.ICircle#toString()
	 */
	public String toString(){
		return "X";
	}

}
